use db name in keeper path

This commit is contained in:
Mikhail Artemenko 2024-08-29 15:26:42 +00:00
parent d8f0ce92af
commit 1aae191b81
2 changed files with 3 additions and 4 deletions

View File

@ -7,9 +7,9 @@ simple move
A C H
node-A
move node with childs -- must be error
Transaction failed (Not empty): Op #2, path: /test-keeper-client-cp-mv-commands/A
Transaction failed (Not empty): Op #2, path: /test-keeper-client-default/A
A C H
move node to existing
Transaction failed (Node exists): Op #1, path: /test-keeper-client-cp-mv-commands/A
Transaction failed (Node exists): Op #1, path: /test-keeper-client-default/A
A C H
clean up

View File

@ -4,8 +4,7 @@ CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CUR_DIR"/../shell_config.sh
path="/test-keeper-client-cp-mv-commands"
path="/test-keeper-client-$CLICKHOUSE_DATABASE"
$CLICKHOUSE_KEEPER_CLIENT -q "rm '$path'" >& /dev/null
$CLICKHOUSE_KEEPER_CLIENT -q "create '$path' 'root'"