You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "git-hulk (via GitHub)" <gi...@apache.org> on 2023/04/07 01:59:26 UTC

[GitHub] [incubator-kvrocks] git-hulk commented on a diff in pull request #1373: Minor refactoring of slot migration source code

git-hulk commented on code in PR #1373:
URL: https://github.com/apache/incubator-kvrocks/pull/1373#discussion_r1160380011


##########
src/cluster/slot_migrate.h:
##########
@@ -133,52 +123,51 @@ class SlotMigrate : public Redis::Database {
   Status MigrateStream(const rocksdb::Slice &key, const StreamMetadata &metadata, std::string *restore_cmds);
   Status MigrateBitmapKey(const InternalKey &inkey, std::unique_ptr<rocksdb::Iterator> *iter,
                           std::vector<std::string> *user_cmd, std::string *restore_cmds);
+
   Status SendCmdsPipelineIfNeed(std::string *commands, bool need);
   void ApplyMigrationSpeedLimit() const;
   Status GenerateCmdsFromBatch(rocksdb::BatchResult *batch, std::string *commands);
   Status MigrateIncrementData(std::unique_ptr<rocksdb::TransactionLogIterator> *iter, uint64_t end_seq);
-  Status SyncWalBeforeForbidSlot();
-  Status SyncWalAfterForbidSlot();
+  Status SyncWalBeforeForbiddingSlot();

Review Comment:
   Should we also change `Wal` to `WAL` for keeping consistent with previous function `SyncWAL`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org