frostfs-node/pkg/local_object_storage/writecache
Evgenii Stratonikov 1462824ab8 [#947] 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 #866 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 [#947] writecache: refactor object persisting 2021-11-01 15:52:56 +03:00
doc.go [#472] blobstor: implement write-cache 2021-04-29 17:36:36 +03:00
flush.go [#568] shard/writecache: Maintain memory size and db size 2021-06-21 14:26:30 +03:00
get.go [#791] neofs-lens: inspect objects by address 2021-10-18 11:55:02 +03:00
iterate.go [#791] writecache: Implement iterator over small objects 2021-10-05 10:51:10 +03:00
options.go [#776] writecache: Limit size of used disk space 2021-09-15 18:07:36 +03:00
persist.go [#947] writecache: refactor object persisting 2021-11-01 15:52:56 +03:00
put.go [#947] writecache: refactor object persisting 2021-11-01 15:52:56 +03:00
state.go [#933] write-cache: Use real number of objects in counters 2021-10-25 18:49:10 +03:00
storage.go [#947] writecache: refactor object persisting 2021-11-01 15:52:56 +03:00
util.go [#791] writecache: Export OpenDB function 2021-10-05 10:51:10 +03:00
writecache.go [#947] writecache: refactor object persisting 2021-11-01 15:52:56 +03:00