greatsharp commented on code in PR #2954:
URL: https://github.com/apache/kvrocks/pull/2954#discussion_r2083509984


##########
src/server/server.h:
##########
@@ -65,6 +65,20 @@ struct DBScanInfo {
   bool is_scanning = false;
 };
 
+struct SlotStats {
+  uint16_t slot_id = 0;
+  uint64_t n_key = 0;
+  uint64_t n_unexpected_key = 0;
+};
+
+struct SlotScanInfo {
+  // Last scan system clock in seconds
+  int64_t last_scan_time_secs = 0;
+  std::map<uint16_t, SlotStats> slot_stats;
+  bool is_scanning = false;
+  int scanning_slot_id = -1;
+};

Review Comment:
   > How to distinguish between different namespaces?
   
   this command only works in cluster mode, there is only one default namespace 
in cluster mode.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to