Fix #gmzone <zonename> <version> to actually create bucket flags via version

This commit is contained in:
Chris Miles 2019-08-03 01:32:56 -05:00 committed by GitHub
parent 979c819075
commit 9d9374ec19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4490,7 +4490,7 @@ void command_gmzone(Client *c, const Seperator *sep)
identifier = sep->arg[3]; identifier = sep->arg[3];
} }
std::string bucket_key = StringFormat("%s-%s-instance", zone_short_name, identifier.c_str()); std::string bucket_key = StringFormat("%s-%s-%u-instance", zone_short_name, zone_version, identifier.c_str());
std::string existing_zone_instance = DataBucket::GetData(bucket_key); std::string existing_zone_instance = DataBucket::GetData(bucket_key);
if (existing_zone_instance.length() > 0) { if (existing_zone_instance.length() > 0) {