Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@aklaswad
Copy link

When using D::OD w/ any cache layer and try to update some column with not only primary key but also specifying additional terms, Data::ObjectDriver::Driver::BaseCache->update just ignores the $terms

background

The end of my tackle to TheSchwartz's weird behavior, I found this.
By looking https://github.com/saymedia/TheSchwartz/blob/master/lib/TheSchwartz.pm#L335 TS is trying to run UPDATE statement with using grabbed_until column for both SET and WHERE clause - to avoid contention. But D::OD Cache layer doesn't pass $terms to fallbacks, so this couldn't work.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) to 83.51% when pulling 50a99af on Peatix:fix-cachedriver-doesnt-pass-args into 03e33be on sixapart:master.

ziguzagu added a commit that referenced this pull request Mar 13, 2015
D:OD:D:BaseObject should pass the whole args to fallback.
@ziguzagu ziguzagu merged commit 18c406d into sixapart:master Mar 13, 2015
@ziguzagu
Copy link
Contributor

@aklaswad thanks!

ziguzagu added a commit that referenced this pull request Mar 28, 2015
Changelog diff is:

diff --git a/Changes b/Changes
index 54df798..17ae8ba 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,12 @@
+{{$NEXT}}
+
+0.11 2015-03-28T10:04:24Z
+
+    - Fix test (ambs) #16
+    - Migrate to Minilla (ziguzagu) #17
+    - Pass the whole args to fallback driver. (Akira Sawada) #18
+    - Remove a joined table from the "FROM" phrase for fix error on MySQL. (usualoma) #7
+
 0.10 2015.01.14
     - Document spelling corrections (dsteinbrunner) #8 #9 #10 #11 #12 #13 #14

@@ -13,7 +22,6 @@
     - Adds a new restricted IO operation mode controlled by the
       $Data::ObjectDriver::RESTRICT_IO flag (Brad Whitaker)

-Revision history for Data::ObjectDriver
 0.07 2010.03.22
     - When an object is changed, delete the cache instead of updating it.
       It is a bit more expensive, but should safer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants