From 8d7aff89e345ca4447888b0d4e1454853a12b005 Mon Sep 17 00:00:00 2001 From: Asias He Date: Fri, 29 May 2015 10:35:24 +0800 Subject: [PATCH] storage_service: Reduce default num_tokens to 3 The default value 256 in Origin is too big for debug. We can set it back when storage_service is maturer. --- dht/boot_strapper.hh | 2 +- service/storage_service.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dht/boot_strapper.hh b/dht/boot_strapper.hh index a76ef406ed..1cd22a54fc 100644 --- a/dht/boot_strapper.hh +++ b/dht/boot_strapper.hh @@ -95,7 +95,7 @@ public: } #endif // FIXME: DatabaseDescriptor.getNumTokens(); - size_t num_tokens = 256; + size_t num_tokens = 3; if (num_tokens < 1) { throw std::runtime_error("num_tokens must be >= 1"); } diff --git a/service/storage_service.hh b/service/storage_service.hh index 126e6473d7..1ac6236256 100644 --- a/service/storage_service.hh +++ b/service/storage_service.hh @@ -777,7 +777,7 @@ private: #endif } else { // FIXME: DatabaseDescriptor.getNumTokens() - size_t num_tokens = 256; + size_t num_tokens = 3; _bootstrap_tokens = boot_strapper::get_random_tokens(_token_metadata, num_tokens); return make_ready_future<>(); #if 0