Skip to content

Commit

Permalink
rename -> destination
Browse files Browse the repository at this point in the history
  • Loading branch information
tisilent committed Apr 1, 2024
1 parent 2b8c323 commit 61cace5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/server/Storage/Session/ObjectStore/SetOps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -486,15 +486,15 @@ public GarnetStatus SetDiffStore(byte[] key, ArgSlice[] keys, out int count)
if (key.Length == 0 || keys.Length == 0)
return GarnetStatus.OK;

var asKey = scratchBufferManager.CreateArgSlice(key);
var destination = scratchBufferManager.CreateArgSlice(key);

var createTransaction = false;

if (txnManager.state != TxnState.Running)
{
Debug.Assert(txnManager.state == TxnState.None);
createTransaction = true;
txnManager.SaveKeyEntryToLock(asKey, true, LockType.Exclusive);
txnManager.SaveKeyEntryToLock(destination, true, LockType.Exclusive);
foreach (var item in keys)
txnManager.SaveKeyEntryToLock(item, true, LockType.Shared);
_ = txnManager.Run(true);
Expand Down

0 comments on commit 61cace5

Please sign in to comment.