Files
seaweedfs/weed/filer/rocksdb
f9febc7ee5 filer: a store's listing expires an entry as the filer does (#13399)
* filer: a store's listing expires an entry as the filer does

The tikv and redis stores remove the entries a listing finds expired,
and judged that by Crtime + TtlSec. For an S3 object the filer counts
from mtime instead, and an overwrite keeps Crtime while it moves mtime.
So a listing deleted an S3 object that was overwritten within its TTL:
a GET still returned it, and after one ListObjects it was gone. The same
check dropped a directory carrying a TTL from an older build, stranding
what it holds, which the filer's lookups refuse to do.

These stores, and the rocksdb compaction filter, now use Entry.ExpiresAt.

* filer: trim the store expiry comments

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: MapleWhiteZZZ <18653045+MapleWhiteZZZ@users.noreply.github.com>
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 23:49:33 -08:00
..

Prepare the compilation environment on linux

Prepare the compilation environment on mac os

brew install snappy

install rocksdb:

 export ROCKSDB_HOME=/Users/chris/dev/rocksdb

 git clone https://github.com/facebook/rocksdb.git $ROCKSDB_HOME
 pushd $ROCKSDB_HOME
 make clean
 make install-static
 popd

install gorocksdb

export CGO_CFLAGS="-I$ROCKSDB_HOME/include"
export CGO_LDFLAGS="-L$ROCKSDB_HOME -lrocksdb -lstdc++ -lm -lz -lbz2 -lsnappy -llz4 -lzstd"

go get github.com/tecbot/gorocksdb

compile with rocksdb

cd ~/go/src/github.com/seaweedfs/seaweedfs/weed
go install -tags rocksdb