diff --git a/node/store/clock.go b/node/store/clock.go index 67f8a38..4fd0911 100644 --- a/node/store/clock.go +++ b/node/store/clock.go @@ -275,7 +275,9 @@ func extractFrameNumberAndFilterFromMasterFrameKey( ) } - return binary.BigEndian.Uint64(key[2:10]), key[10:], nil + copied := make([]byte, len(key)) + copy(copied, key) + return binary.BigEndian.Uint64(copied[2:10]), copied[10:], nil } func clockDataFrameKey(