hbase add ttl

This commit is contained in:
Chris Lu
2020-12-24 12:10:35 -08:00
parent 75c6edba9e
commit 0e016bc7bd
2 changed files with 13 additions and 5 deletions

View File

@@ -79,7 +79,7 @@ func (store *HbaseStore) InsertEntry(ctx context.Context, entry *filer.Entry) er
value = util.MaybeGzipData(value)
}
return store.doPut(ctx, store.cfMetaDir, []byte(entry.FullPath), value)
return store.doPut(ctx, store.cfMetaDir, []byte(entry.FullPath), value, entry.TtlSec)
}
func (store *HbaseStore) UpdateEntry(ctx context.Context, entry *filer.Entry) (err error) {