Commit fab1bbc8 authored by Lizhou Gao's avatar Lizhou Gao
Browse files

replace the missing D_SEC

parent 6c14297a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1204,7 +1204,7 @@ SqliteMetaImpl::Archive() {
        auto& criteria = kv.first;
        auto& limit = kv.second;
        if (criteria == engine::ARCHIVE_CONF_DAYS) {
            int64_t usecs = limit * D_SEC * US_PS;
            int64_t usecs = limit * DAY * US_PS;
            int64_t now = utils::GetMicroSecTimeStamp();
            try {
                // multi-threads call sqlite update may get exception('bad logic', etc), so we add a lock here