Use right reserve size (#13829)

This commit is contained in:
Tao Wang
2021-02-01 15:49:34 +08:00
committed by GitHub
parent 9d7b8b58a2
commit 1d2ab018b0
@@ -115,7 +115,7 @@ Status RedisStoreClient::AsyncDeleteWithIndex(const std::string &table_name,
const std::string &index_key,
const StatusCallback &callback) {
std::vector<std::string> redis_keys;
redis_keys.reserve(20);
redis_keys.reserve(2);
redis_keys.push_back(GenRedisKey(table_name, key));
redis_keys.push_back(GenRedisKey(table_name, key, index_key));