| 1856 | } |
| 1857 | |
| 1858 | ReplState Server::GetReplicationState() { |
| 1859 | std::lock_guard<std::mutex> guard(slaveof_mu_); |
| 1860 | if (IsSlave() && replication_thread_) { |
| 1861 | return replication_thread_->State(); |
| 1862 | } |
| 1863 | return kReplConnecting; |
| 1864 | } |
| 1865 | |
| 1866 | StatusOr<std::unique_ptr<redis::Commander>> Server::LookupAndCreateCommand(const std::string &cmd_name) { |
| 1867 | if (cmd_name.empty()) return {Status::RedisUnknownCmd}; |
no test coverage detected