mirror of
https://github.com/nextcloud/server.git
synced 2026-04-28 01:28:08 -04:00
Merge pull request #15636 from owncloud/enc2_performance_improvement
[encryption2] set size and unencrypted size to zero at the beginning of a write operation
This commit is contained in:
commit
b0fcf0fa0e
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue