Remove file-local expire_running variable

This commit is contained in:
Tim Wojtulewicz 2025-03-10 05:51:59 -07:00
parent ebefb21c53
commit 605973497f
2 changed files with 12 additions and 10 deletions

View file

@ -47,6 +47,8 @@ public:
*/
bool IsOpen() override { return connected; }
bool ExpireRunning() const { return expire_running.load(); }
private:
OperationResult DoOpen(RecordValPtr options, OpenResultCallback* cb = nullptr) override;
OperationResult DoClose(OperationResultCallback* cb = nullptr) override;
@ -71,8 +73,10 @@ private:
std::string server_addr;
std::string key_prefix;
std::atomic<bool> connected = false;
int active_ops = 0;
std::atomic<bool> expire_running = false;
std::atomic<int> active_ops = 0;
};
} // namespace zeek::storage::backend::redis