You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by GitBox <gi...@apache.org> on 2022/10/22 08:37:01 UTC

[GitHub] [incubator-kvrocks] mapleFU commented on pull request #1026: Support `config set backup-dir new-dir`

mapleFU commented on PR #1026:
URL: https://github.com/apache/incubator-kvrocks/pull/1026#issuecomment-1287682641

   > 1. Could we add a new seperate mutex for directory changing? e.g. `backup_mu` and `backup_dir_mu`.
   
   It's ok, and it can solve part of the problem, but the syntax for `backup_creating_time_` may still need to be specified.
   
   > 2. If we use only one mutex `backup_mu`, could we use `try_lock` on the directory changing? e.g.
   > 
   > ```
   > if(backup_mu.try_lock()) exchange ...
   > else report("backuping, cannot change...")
   > ```
   
   Both ok for me, personally, I think using `backup_dir_mu` is better here, but when we increasing our changable variables, the state of our system would be chaos. Maybe report error is better here.
   


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