diff options
author | Mohit Agrawal <moagrawal@redhat.com> | 2018-08-24 10:44:59 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-08-27 03:24:50 +0000 |
commit | 30e46a9b3cef868e5c781044c99c3d5b066d4760 (patch) | |
tree | 596b0cd680d482467e2fb38c7f825f5c2cfabb3b /tests/basic | |
parent | 57da742b13c85b5671be2638d7c9d1d31c5c93bb (diff) |
ctr: skip ctr xlator init if ctr is not enabled
Problem: If ctr xlator is not required it consumes
resources unnecessarily
Solution: Call ctr xlator init only while feature is enabled
Fixes: bz#1524323
Change-Id: I378113a390a286be20c4ade1b1bac170a8ef1b14
Signed-off-by: Mohit Agrawal <moagrawal@redhat.com>
Diffstat (limited to 'tests/basic')
-rwxr-xr-x | tests/basic/tier/tier_lookup_heal.t | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/basic/tier/tier_lookup_heal.t b/tests/basic/tier/tier_lookup_heal.t index b4d9c54e9b9..c7c7f27e8de 100755 --- a/tests/basic/tier/tier_lookup_heal.t +++ b/tests/basic/tier/tier_lookup_heal.t @@ -36,12 +36,6 @@ TEST stat . TEST touch file1 TEST stat file1 -# gf_file_tb and gf_flink_tb should be empty -ENTRY_COUNT=$(echo "select * from gf_file_tb; select * from gf_flink_tb;" | \ - sqlite3 $B0/${V0}$LAST_BRICK/.glusterfs/${V0}$LAST_BRICK.db | wc -l ) -TEST [ $ENTRY_COUNT -eq 0 ] - - #Attach tier and switch ON CTR Xlator. TEST $CLI volume tier $V0 attach replica 2 $H0:$B0/${V0}$CACHE_BRICK_FIRST $H0:$B0/${V0}$CACHE_BRICK_LAST TEST $CLI volume set $V0 features.ctr-enabled on |