[Bps-public-commit] r14472 - in Prophet/trunk: .
sartak at bestpractical.com
sartak at bestpractical.com
Thu Jul 24 05:43:34 EDT 2008
Author: sartak
Date: Thu Jul 24 05:43:32 2008
New Revision: 14472
Modified:
Prophet/trunk/ (props changed)
Prophet/trunk/lib/Prophet/Replica.pm
Log:
r65007 at onn: sartak | 2008-07-24 05:43:19 -0400
Avoid undef warnings in comparing against last_sequence_no
Modified: Prophet/trunk/lib/Prophet/Replica.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/Replica.pm (original)
+++ Prophet/trunk/lib/Prophet/Replica.pm Thu Jul 24 05:43:32 2008
@@ -152,7 +152,7 @@
# they have no changes, that means they're probably creating a new replica
# of a database, so copy the db_uuid
- if ($self->latest_sequence_no == 0) {
+ if (($self->latest_sequence_no||0) == 0) {
my $uuid = $source->db_uuid;
$self->set_db_uuid($uuid) if $uuid;
}
More information about the Bps-public-commit
mailing list