Work toward working directories.

This commit is contained in:
Arthur Britto
2012-05-30 23:18:57 -07:00
parent a333a2a6c7
commit 21d9140e4e
5 changed files with 60 additions and 27 deletions

View File

@@ -8,7 +8,7 @@
typedef SerializedLedgerEntry SLE;
#define DIR_NODE_MAX 32
#define DIR_NODE_MAX 1
// We return the uNodeDir so that on delete we can quickly know where the element is mentioned in the directory.
TransactionEngineResult TransactionEngine::dirAdd(
@@ -63,6 +63,10 @@ TransactionEngineResult TransactionEngine::dirAdd(
{
// Last node is not full, append.
std::cerr << "dirAdd: appending: PREV: " << svIndexes.peekValue()[0].ToString() << std::endl;
std::cerr << "dirAdd: appending: Node: " << strHex(uNodeDir) << std::endl;
std::cerr << "dirAdd: appending: Entry: " << uLedgerIndex.ToString() << std::endl;
svIndexes.peekValue().push_back(uLedgerIndex);
sleNode->setIFieldV256(sfIndexes, svIndexes);