chore: get rid of MutableSlice (#3952)

* chore: get rid of MutableSlice

Signed-off-by: Roman Gershman <roman@dragonflydb.io>

* chore: comments

---------

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
Roman Gershman 2024-10-23 21:50:39 +03:00 committed by GitHub
parent 0ebc1a11e1
commit 4aa0ca1ef7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 95 additions and 147 deletions

View file

@ -296,7 +296,7 @@ void Transaction::PrepareMultiFps(CmdArgList keys) {
auto& tag_fps = multi_->tag_fps;
tag_fps.reserve(keys.size());
for (string_view str : ArgS(keys)) {
for (string_view str : keys) {
ShardId sid = Shard(str, shard_set->size());
tag_fps.emplace(sid, LockTag(str).Fingerprint());
}
@ -474,7 +474,7 @@ void Transaction::StartMultiLockedAhead(Namespace* ns, DbIndex dbid, CmdArgList
if (!skip_scheduling)
ScheduleInternal();
full_args_ = {nullptr, 0}; // InitBase set it to temporary keys, now we reset it.
full_args_ = {}; // InitBase set it to temporary keys, now we reset it.
}
void Transaction::StartMultiNonAtomic() {