mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-04 14:03:06 +00:00
tests/sstable_utils: Don't assume seastar test context
Signed-off-by: Duarte Nunes <duarte@scylladb.com> Message-Id: <20180116131722.86230-1-duarte@scylladb.com>
This commit is contained in:
@@ -43,7 +43,7 @@ static std::vector<sstring> make_local_keys(unsigned n, const schema_ptr& s, siz
|
||||
auto dk = dht::global_partitioner().decorate_key(*s, partition_key::from_single_value(*s, to_bytes(raw_key)));
|
||||
key_id++;
|
||||
|
||||
if (engine().cpu_id() != dht::global_partitioner().shard_of(dk.token())) {
|
||||
if (engine_is_ready() && engine().cpu_id() != dht::global_partitioner().shard_of(dk.token())) {
|
||||
continue;
|
||||
}
|
||||
generated++;
|
||||
|
||||
Reference in New Issue
Block a user