[Bps-public-commit] r15558 - in Pushmi/trunk: lib/Pushmi/Command

alexmv at bestpractical.com alexmv at bestpractical.com
Wed Aug 27 14:34:57 EDT 2008


Author: alexmv
Date: Wed Aug 27 14:34:55 2008
New Revision: 15558

Modified:
   Pushmi/trunk/   (props changed)
   Pushmi/trunk/lib/Pushmi/Command/Sync.pm

Log:
 r36629 at kohr-ah:  chmrr | 2008-08-27 14:30:44 -0400
  * Get the lock while we bootstrap


Modified: Pushmi/trunk/lib/Pushmi/Command/Sync.pm
==============================================================================
--- Pushmi/trunk/lib/Pushmi/Command/Sync.pm	(original)
+++ Pushmi/trunk/lib/Pushmi/Command/Sync.pm	Wed Aug 27 14:34:55 2008
@@ -25,9 +25,11 @@
         return;
     }
 
-    if ($self->{bootstrap}) {
-        require SVK::Notify; # remove me later
-        $pushmi->master->bootstrap($self->{bootstrap});
+    if ( $self->{bootstrap} ) {
+        require SVK::Notify;    # remove me later
+        $pushmi->master->with_lock(
+            "sync",
+            sub { $pushmi->master->bootstrap( $self->{bootstrap} ) } );
         return;
     }
 



More information about the Bps-public-commit mailing list