frostfs-node/pkg/local_object_storage/writecache
Evgenii Stratonikov 1462824ab8 [] writecache: refactor object persisting
a1696a8 introduced some logic which in some situations prevented big objects
to be persisted in FSTree. In this commit a refactoring is done with the
goal of simplifying the code and also checking  issue.

1. Split a monstrous function into multiple simple ones: memory objects
   can only be small and for writing through the cache we can do a dispatch
   in `Put` itself.
2. Determine objects to be put in database before the actual update
   as setting up a transaction has non-zero overhead.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-11-01 15:52:56 +03:00
..
delete.go [] writecache: refactor object persisting 2021-11-01 15:52:56 +03:00
doc.go [] blobstor: implement write-cache 2021-04-29 17:36:36 +03:00
flush.go [] shard/writecache: Maintain memory size and db size 2021-06-21 14:26:30 +03:00
get.go [] neofs-lens: inspect objects by address 2021-10-18 11:55:02 +03:00
iterate.go [] writecache: Implement iterator over small objects 2021-10-05 10:51:10 +03:00
options.go [] writecache: Limit size of used disk space 2021-09-15 18:07:36 +03:00
persist.go [] writecache: refactor object persisting 2021-11-01 15:52:56 +03:00
put.go [] writecache: refactor object persisting 2021-11-01 15:52:56 +03:00
state.go [] write-cache: Use real number of objects in counters 2021-10-25 18:49:10 +03:00
storage.go [] writecache: refactor object persisting 2021-11-01 15:52:56 +03:00
util.go [] writecache: Export OpenDB function 2021-10-05 10:51:10 +03:00
writecache.go [] writecache: refactor object persisting 2021-11-01 15:52:56 +03:00