mirror of
https://github.com/pgsty/minio.git
synced 2026-07-16 00:41:25 +03:00
use unixNanoTime instead of time.Time in lockRequestorInfo (#20140)
Bonus: Skip Source, Quorum fields in lockArgs that are never sent during Unlock() phase.
This commit is contained in:
@@ -63,15 +63,15 @@ func TestLockRpcServerRemoveEntry(t *testing.T) {
|
||||
Owner: "owner",
|
||||
Writer: true,
|
||||
UID: "0123-4567",
|
||||
Timestamp: UTCNow(),
|
||||
TimeLastRefresh: UTCNow(),
|
||||
Timestamp: UTCNow().UnixNano(),
|
||||
TimeLastRefresh: UTCNow().UnixNano(),
|
||||
}
|
||||
lockRequesterInfo2 := lockRequesterInfo{
|
||||
Owner: "owner",
|
||||
Writer: true,
|
||||
UID: "89ab-cdef",
|
||||
Timestamp: UTCNow(),
|
||||
TimeLastRefresh: UTCNow(),
|
||||
Timestamp: UTCNow().UnixNano(),
|
||||
TimeLastRefresh: UTCNow().UnixNano(),
|
||||
}
|
||||
|
||||
locker.ll.lockMap["name"] = []lockRequesterInfo{
|
||||
|
||||
Reference in New Issue
Block a user