| 1 |
# _database_close/_database_reopen can't use with HTTP because requests via HTTP are always |
| 2 |
# processed by workers. Workers never use primary WAL role. |
| 3 |
#@require-interface stdio |
| 4 |
|
| 5 |
#@require-feature message_pack |
| 6 |
|
| 7 |
#$GROONGA_ALLOW_DATABASE_REOPEN=yes |
| 8 |
#$GRN_WAL_ROLE=primary |
| 9 |
|
| 10 |
#@copy-path #{db_path}.conf #{db_path}.conf.initial |
| 11 |
|
| 12 |
config_set pgroonga_writable true |
| 13 |
|
| 14 |
dump |
| 15 |
|
| 16 |
#@copy-path #{db_path}.conf.wal #{db_path}.conf.wal.keep |
| 17 |
_database_close |
| 18 |
|
| 19 |
#@copy-path #{db_path}.conf.initial #{db_path}.conf |
| 20 |
#@copy-path #{db_path}.conf.wal.keep #{db_path}.conf.wal |
| 21 |
_database_reopen |
| 22 |
|
| 23 |
dump |