diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2018-07-24 02:19:06 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-24 02:19:06 -0700 |
| commit | 0fb4f59fa601eb39c1718a41dca51a05f6b3e5bb (patch) | |
| tree | 96a91af29567446f49ce5cda459b6d9437e7f233 /weed/storage/needle.go | |
| parent | e8a5ee4f480f1e7d4c751ccd0b303e2a001568d0 (diff) | |
| parent | 77fadab56005d0a0a1b69e06e1c057ddd5a45893 (diff) | |
| download | seaweedfs-0fb4f59fa601eb39c1718a41dca51a05f6b3e5bb.tar.xz seaweedfs-0fb4f59fa601eb39c1718a41dca51a05f6b3e5bb.zip | |
Merge pull request #697 from chrislusf/add_version3
Add version3
Diffstat (limited to 'weed/storage/needle.go')
| -rw-r--r-- | weed/storage/needle.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/weed/storage/needle.go b/weed/storage/needle.go index 31bada091..f67556c72 100644 --- a/weed/storage/needle.go +++ b/weed/storage/needle.go @@ -39,8 +39,9 @@ type Needle struct { LastModified uint64 //only store LastModifiedBytesLength bytes, which is 5 bytes to disk Ttl *TTL - Checksum CRC `comment:"CRC32 to check integrity"` - Padding []byte `comment:"Aligned to 8 bytes"` + Checksum CRC `comment:"CRC32 to check integrity"` + AppendAtNs uint64 `comment:"append timestamp in nano seconds"` //version3 + Padding []byte `comment:"Aligned to 8 bytes"` } func (n *Needle) String() (str string) { |
