chore: cosmetic changes around Snapshot functions (#3652)

* chore: cosmetic changes around Snapshot functions

Some renames and added comments. Refactored StartIncremental into a separate function
without any functional changes.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>

* chore: fix comments

---------

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
Roman Gershman 2024-09-08 09:25:41 +03:00 committed by GitHub
parent 1d34bf735e
commit 264835e9c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 102 additions and 88 deletions

View file

@ -56,6 +56,10 @@ class EngineShard {
return shard_;
}
bool IsMyThread() const {
return this == shard_;
}
ShardId shard_id() const {
return shard_id_;
}