diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-06-10 17:45:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-10 17:45:52 +0200 |
commit | 52a0c939ab8674857bbfe9a9fb0ee7308eee960e (patch) | |
tree | 8e49d951042f62b1875f43011d0f45652916335b /lib/public | |
parent | 21de838b857e8400b838e2d67a1de3cd40c7aa2d (diff) | |
parent | fce19d22d93d8c36066f5fe67efb86bf257a37c7 (diff) | |
download | nextcloud-server-52a0c939ab8674857bbfe9a9fb0ee7308eee960e.tar.gz nextcloud-server-52a0c939ab8674857bbfe9a9fb0ee7308eee960e.zip |
Merge pull request #24863 from owncloud/propagator-batching
Propagator batching for the file scanner
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Files/Cache/IPropagator.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/public/Files/Cache/IPropagator.php b/lib/public/Files/Cache/IPropagator.php index 5494ec9a54e..541135b9e60 100644 --- a/lib/public/Files/Cache/IPropagator.php +++ b/lib/public/Files/Cache/IPropagator.php @@ -28,6 +28,25 @@ namespace OCP\Files\Cache; */ interface IPropagator { /** + * Mark the beginning of a propagation batch + * + * Note that not all cache setups support propagation in which case this will be a noop + * + * Batching for cache setups that do support it has to be explicit since the cache state is not fully consistent + * before the batch is committed. + * + * @since 9.1.0 + */ + public function beginBatch(); + + /** + * Commit the active propagation batch + * + * @since 9.1.0 + */ + public function commitBatch(); + + /** * @param string $internalPath * @param int $time * @since 9.0.0 |