| 125 | } |
| 126 | |
| 127 | ACTOR static Future<Void> sync(Reference<AsyncFileEncrypted> self) { |
| 128 | ASSERT(self->mode == AsyncFileEncrypted::Mode::APPEND_ONLY); |
| 129 | wait(self->writeLastBlockToFile()); |
| 130 | wait(self->file->sync()); |
| 131 | return Void(); |
| 132 | } |
| 133 | |
| 134 | ACTOR static Future<Void> zeroRange(AsyncFileEncrypted* self, int64_t offset, int64_t length) { |
| 135 | ASSERT(self->mode == AsyncFileEncrypted::Mode::APPEND_ONLY); |
nothing calls this directly
no test coverage detected