diff options
author | Björn Schießle <bjoern@schiessle.org> | 2015-04-21 11:01:33 +0200 |
---|---|---|
committer | Björn Schießle <bjoern@schiessle.org> | 2015-04-21 11:01:33 +0200 |
commit | b0fcf0fa0ee8846e2ba35ede5968ed0227c5675d (patch) | |
tree | ee93afe8cfb02b3a0da68832e89e2734d2a92ab8 /lib | |
parent | edbcb834c7f720ebc30b4aa64c7095d8e786dedc (diff) | |
parent | 7fe0e09d146b2d20aac840af9c5a4796f96fde84 (diff) | |
download | nextcloud-server-b0fcf0fa0ee8846e2ba35ede5968ed0227c5675d.tar.gz nextcloud-server-b0fcf0fa0ee8846e2ba35ede5968ed0227c5675d.zip |
Merge pull request #15636 from owncloud/enc2_performance_improvement
[encryption2] set size and unencrypted size to zero at the beginning of a write operation
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/stream/encryption.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/files/stream/encryption.php b/lib/private/files/stream/encryption.php index 4a1df840105..2ec15251a23 100644 --- a/lib/private/files/stream/encryption.php +++ b/lib/private/files/stream/encryption.php @@ -223,9 +223,8 @@ class Encryption extends Wrapper { || $mode === 'wb+' ) { // We're writing a new file so start write counter with 0 bytes - // TODO can we remove this completely? - //$this->unencryptedSize = 0; - //$this->size = 0; + $this->unencryptedSize = 0; + $this->size = 0; $this->readOnly = false; } else { $this->readOnly = true; |