diff options
| author | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2020-01-03 11:44:59 +0100 |
|---|---|---|
| committer | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2020-01-03 11:44:59 +0100 |
| commit | 6b273e46723ce05dbac5016e7d4c712c27671abb (patch) | |
| tree | 5138edd4cc9a7c6c3478a781d628a0993d6a8034 | |
| parent | 070ebdba752289c113b84c6ed3c98262c55298c5 (diff) | |
| download | rabbitmq-server-git-6b273e46723ce05dbac5016e7d4c712c27671abb.tar.gz | |
rabbit_variable_queue: Adapt to new rabbit_recovery_terms:open_table/1
Since rabbitmq/rabbitmq-server#2195, rabbit_recovery_terms:open_table/1
returns `ok` instead of dets:open_file/2 return value.
This should fix the upgrade from RabbitMQ 3.6.x to 3.8.x where the
message store is converted.
| -rw-r--r-- | src/rabbit_variable_queue.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_variable_queue.erl b/src/rabbit_variable_queue.erl index 430feafbfb..1db5dbf233 100644 --- a/src/rabbit_variable_queue.erl +++ b/src/rabbit_variable_queue.erl @@ -2846,7 +2846,7 @@ move_messages_to_vhost_store(Queues) -> %% New store should not be recovered. NewMsgStore = start_new_store(VHosts), %% Recovery terms should be started for all vhosts for new store. - [{ok, _} = rabbit_recovery_terms:open_table(VHost) || VHost <- VHosts], + [ok = rabbit_recovery_terms:open_table(VHost) || VHost <- VHosts], MigrationBatchSize = application:get_env(rabbit, queue_migration_batch_size, ?QUEUE_MIGRATION_BATCH_SIZE), |
