jihuayu commented on issue #1402:
URL: 
https://github.com/apache/incubator-kvrocks/issues/1402#issuecomment-1585290486

   Thank you! @mapleFU 
   1. I'm not storing the iterator, I just made a dictionary that [converts the 
**number cursor** to a **begin key 
name**](https://github.com/jihuayu/incubator-kvrocks/blob/71358a1b6260ba6a9dd91ac2930e3f3645fa4d6d/src/commands/cmd_server.cc#L777)
 when receiving the command. After completing the scan, I use [the **end key 
name** to generate a new **number 
cursor**](https://github.com/jihuayu/incubator-kvrocks/blob/71358a1b6260ba6a9dd91ac2930e3f3645fa4d6d/src/commands/cmd_server.cc#L765).
   2. [The cursor is a global counter that is incremented whenever a new cursor 
needs to be 
generated.](https://github.com/jihuayu/incubator-kvrocks/blob/71358a1b6260ba6a9dd91ac2930e3f3645fa4d6d/src/server/server.cc#L1768)
   
   
   
   
   
   
   


-- 
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