message: bugfix exec the bgsave command runs the risk of cause a deadlock when slave close the slave-read-only mode
diff: @@ -54,11 +54,6 @@ void BinlogBGWorker::DoBinlogBG(void* arg) {
  g_pika_server->mutex_record_.Lock(argv[1]);
  }
  - // Add read lock for no suspend command
  - if (!cinfo_ptr->is_suspend()) {
  - g_pika_server->RWLockReader();
  - }
  -
  // Force the binlog write option to serialize
  // Unlock, clean env, and exit when error happend
  bool error_happend = false;
  @@ -87,6 +82,11 @@ void BinlogBGWorker::DoBinlogBG(void* arg) {
  }
  }
  + // Add read lock for no suspend command
  + if (!cinfo_ptr->is_suspend()) {
  + g_pika_server->RWLockReader();
  + }
  +
  if (!error_happend) {
  c_ptr->Do();
  }
  