From 58866104a92791fdba206b3042be2c2b181a1e81 Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Tue, 1 Nov 2005 05:18:12 +0000 Subject: [PATCH] Arreglo logica de seleccion de nodo. --- src/btree.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/btree.cpp b/src/btree.cpp index 26224a5..e78a91e 100644 --- a/src/btree.cpp +++ b/src/btree.cpp @@ -1181,9 +1181,9 @@ uchar *BTree::NewBlock (uint &num) BTreeNodeHeader nh; std::list::iterator it; - it = deleted_nodes.begin (); - if (it != deleted_nodes.end ()) { + if (deleted_nodes.size ()) { + it = deleted_nodes.begin (); num = *it; deleted_nodes.erase (it); } else { -- 2.43.0