sstable_generation_loading_test.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:cassandra-dtest 作者: apache 项目源码 文件源码
def copy_sstables(self, cluster, node):
        for x in xrange(0, cluster.data_dir_count):
            data_dir = os.path.join(node.get_path(), 'data{0}'.format(x))
            copy_root = os.path.join(node.get_path(), 'data{0}_copy'.format(x))
            for ddir in os.listdir(data_dir):
                keyspace_dir = os.path.join(data_dir, ddir)
                if os.path.isdir(keyspace_dir) and ddir != 'system':
                    copy_dir = os.path.join(copy_root, ddir)
                    dir_util.copy_tree(keyspace_dir, copy_dir)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号