SSPCPP-656 - NameID insert logic appears wrong for ODBC Session store
authorScott Cantor <cantor.2@osu.edu>
Thu, 16 Jul 2015 17:12:20 +0000 (17:12 +0000)
committerScott Cantor <cantor.2@osu.edu>
Thu, 16 Jul 2015 17:12:20 +0000 (17:12 +0000)
https://issues.shibboleth.net/jira/browse/SSPCPP-656

Make sure the reattempt to insert happens.

odbc-store/odbc-store.cpp

index 9fea872..de0cd31 100644 (file)
@@ -518,6 +518,7 @@ bool ODBCStorageService::createRow(const char* table, const char* context, const
             // Try and delete any expired record still hanging around until the final attempt.
             if (attempts > 0) {
                 reap(table, context);
+                logres.first = true;    // force it to treat as a retryable error
                 continue;
             }
             return false;