[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svn_repos_fs_commit_txn error

From: Ren Wang <renwang101_at_gmail.com>
Date: Mon, 23 Nov 2015 15:01:51 -0500

I got an error for creating a new directory to the repository. Strange to me
is that enve the code failed at the svn_repos_fs_commit_txn, but the
directory got created:

 

 

1) Open repository, repos

2) Get the latest revision, youngest

3) Do the following:

svn_fs_txn_t *txn;

svn_fs_root_t *txn_root;

apr_pool_t *subpool = svn_pool_create(pool);

SVN_ERR(svn_repos_fs_begin_txn_for_commit(&txn, &repos, youngest_rev,
"UncleYinan", "log msg", subpool));

SVN_ERR(svn_fs_txn_root(&txn_root, txn, subpool));

SVN_ERR(svn_fs_make_dir(txn_root, directoryPath, subpool));

SVN_ERR(svn_repos_fs_commit_txn(NULL, c->repos, &youngest_rev, txn,
subpool)); -- failed here

 

From the debugger call stack, the code failed at the
svn_fs_fs__open_cache():

 

svn_repos_fs_commit_txn

  svn_fs_commit_txn

     svn_fs_fs__commit

        svn_fs_fs__open_rep_cache

 

 

Not sure if anyone saw this before? I must have missed something, but the
code logic is too much to understand.
Received on 2015-11-23 21:01:22 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.