|
15 | 15 | CollectionResponsibleShardError, |
16 | 16 | CollectionRenameError, |
17 | 17 | CollectionRevisionError, |
18 | | - CollectionRotateJournalError, |
19 | 18 | CollectionStatisticsError, |
20 | 19 | CollectionTruncateError, |
21 | 20 | CollectionUnloadError, |
@@ -307,22 +306,18 @@ def response_handler(resp): |
307 | 306 |
|
308 | 307 | return self._execute(request, response_handler) |
309 | 308 |
|
310 | | - def configure(self, sync=None, journal_size=None): |
| 309 | + def configure(self, sync=None): |
311 | 310 | """Configure collection properties. |
312 | 311 |
|
313 | 312 | :param sync: Block until operations are synchronized to disk. |
314 | 313 | :type sync: bool |
315 | | - :param journal_size: Journal size in bytes. |
316 | | - :type journal_size: int |
317 | 314 | :return: New collection properties. |
318 | 315 | :rtype: dict |
319 | 316 | :raise arango.exceptions.CollectionConfigureError: If operation fails. |
320 | 317 | """ |
321 | 318 | data = {} |
322 | 319 | if sync is not None: |
323 | 320 | data['waitForSync'] = sync |
324 | | - if journal_size is not None: |
325 | | - data['journalSize'] = journal_size |
326 | 321 |
|
327 | 322 | request = Request( |
328 | 323 | method='put', |
@@ -470,25 +465,6 @@ def response_handler(resp): |
470 | 465 |
|
471 | 466 | return self._execute(request, response_handler) |
472 | 467 |
|
473 | | - def rotate(self): |
474 | | - """Rotate the collection journal. |
475 | | -
|
476 | | - :return: True if collection journal was rotated successfully. |
477 | | - :rtype: bool |
478 | | - :raise arango.exceptions.CollectionRotateJournalError: If rotate fails. |
479 | | - """ |
480 | | - request = Request( |
481 | | - method='put', |
482 | | - endpoint='/_api/collection/{}/rotate'.format(self.name), |
483 | | - ) |
484 | | - |
485 | | - def response_handler(resp): |
486 | | - if not resp.is_success: |
487 | | - raise CollectionRotateJournalError(resp, request) |
488 | | - return True # pragma: no cover |
489 | | - |
490 | | - return self._execute(request, response_handler) |
491 | | - |
492 | 468 | def truncate(self): |
493 | 469 | """Delete all documents in the collection. |
494 | 470 |
|
|
0 commit comments