ASF Bugzilla – Attachment 19710 Details for
Bug 41847
[PATCH] UnitOfWorkImpl.rollback() doesn't check before unlocking
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Checks to make sure user has checked file out before unlocking
UnitOfWorkImpl.java.diff (text/plain), 815 bytes, created by
Richard Frovarp
on 2007-03-15 07:07:43 UTC
(
hide
)
Description:
Checks to make sure user has checked file out before unlocking
Filename:
MIME Type:
Creator:
Richard Frovarp
Created:
2007-03-15 07:07:43 UTC
Size:
815 bytes
patch
obsolete
>Index: src/java/org/apache/lenya/transaction/UnitOfWorkImpl.java >=================================================================== >--- src/java/org/apache/lenya/transaction/UnitOfWorkImpl.java (revision 518294) >+++ src/java/org/apache/lenya/transaction/UnitOfWorkImpl.java (working copy) >@@ -184,11 +184,11 @@ > if (objects[i] instanceof Transactionable) { > Transactionable t = (Transactionable) objects[i]; > if (t.isCheckedOutByUser()) { >+ if (t.isLocked()) { >+ t.unlock(); >+ } > t.checkin(); > } >- if (t.isLocked()) { >- t.unlock(); >- } > } > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 41847
: 19710