Skip to content

Commit

Permalink
ElektraInitiative#3713 ksRewind problem analysis WIP: temporarily com…
Browse files Browse the repository at this point in the history
…mented out the (only) 3 usages of ksRewind in NativePlugin to isolate problem (problem cannot be reproduced locally on my machine)
  • Loading branch information
Michael Tucek committed Apr 8, 2021
1 parent e91194b commit 6b91332
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public int set (KeySet keySet, Key errorKey) throws KDBException
{
// TODO #3171 since internal cursor is not yet removed, we have to rewind it, even if we already removed it from {@code
// KeySet} API
Elektra.INSTANCE.ksRewind (keySet.get ());
// Elektra.INSTANCE.ksRewind (keySet.get ());
int returnValue = elektraPlugin.kdbSet.invoke (elektraPlugin, keySet.get (), errorKey.get ());
if (returnValue == -1)
{
Expand All @@ -116,7 +116,7 @@ public int get (KeySet keySet, Key errorKey) throws KDBException
{
// TODO #3171 since internal cursor is not yet removed, we have to rewind it, even if we already removed it from {@code
// KeySet} API
Elektra.INSTANCE.ksRewind (keySet.get ());
// Elektra.INSTANCE.ksRewind (keySet.get ());
int returnValue = elektraPlugin.kdbGet.invoke (elektraPlugin, keySet.get (), errorKey.get ());
if (returnValue == -1)
{
Expand All @@ -136,7 +136,7 @@ public int error (KeySet keySet, Key errorKey)
{
// TODO #3171 since internal cursor is not yet removed, we have to rewind it, even if we already removed it from {@code
// KeySet} API
Elektra.INSTANCE.ksRewind (keySet.get ());
// Elektra.INSTANCE.ksRewind (keySet.get ());
return elektraPlugin.kdbError.invoke (elektraPlugin, keySet.get (), errorKey.get ());
}

Expand Down

0 comments on commit 6b91332

Please sign in to comment.