X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=buffer_tree.c;h=7d79636fac717f4e4cb8559dec698f8204eed34c;hp=cb9d514f1aa5adfc501d5eee89150b7aa31821bc;hb=869f0e06ec4e15abc9230c1b2d7615da5250802e;hpb=f48194d3ff2a3983f21cab1553fbe29529f2e790 diff --git a/buffer_tree.c b/buffer_tree.c index cb9d514f..7d79636f 100644 --- a/buffer_tree.c +++ b/buffer_tree.c @@ -1,12 +1,11 @@ /* - * Copyright (C) 2009-2011 Andre Noll + * Copyright (C) 2009-2012 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ /** \file buffer_tree.c Buffer tree and buffer pool implementations. */ #include -#include #include "para.h" #include "list.h" @@ -762,7 +761,7 @@ void btr_remove_node(struct btr_node *btrn) if (!btrn) return; - PARA_NOTICE_LOG("removing btr node %s from buffer tree\n", btrn->name); + PARA_INFO_LOG("removing btr node %s from buffer tree\n", btrn->name); FOR_EACH_CHILD(ch, btrn) ch->parent = NULL; btr_drain(btrn); @@ -826,6 +825,7 @@ void btr_splice_out_node(struct btr_node *btrn) list_move(&ch->node, &btrn->parent->children); } assert(list_empty(&btrn->children)); + btrn->parent = NULL; } /** @@ -879,7 +879,7 @@ int btr_exec_up(struct btr_node *btrn, const char *command, char **value_result) if (ret < 0) return ret; if (value_result && *value_result) - PARA_NOTICE_LOG("%s(%s): %s\n", command, parent->name, + PARA_INFO_LOG("%s(%s): %s\n", command, parent->name, *value_result); return 1; }