Commit 8e3f849c authored by Leigh B Stoller's avatar Leigh B Stoller

Minor tweak for impotent mode.

parent aec53eb5
...@@ -869,10 +869,11 @@ sub MakeFake($$$) ...@@ -869,10 +869,11 @@ sub MakeFake($$$)
$argref->{'node_id'} = $nodeid; $argref->{'node_id'} = $nodeid;
# This is usually generated by the insert. # This is usually generated by the insert.
$argref->{'unit'} = $nextfake++; $argref->{'unit'} = $nextfake++;
my $self = {}; my $self = {};
$self->{"DBROW"} = $argref; $self->{"DBROW"} = $argref;
$self->{"FAKE"} = 1;
bless($self, $class); bless($self, $class);
return $self; return $self;
} }
...@@ -955,6 +956,9 @@ sub Update($$) ...@@ -955,6 +956,9 @@ sub Update($$)
return -1 return -1
if (! ref($self)); if (! ref($self));
return 0
if (exists($self->{'FAKE'}));
my $nodeid = $self->node_id(); my $nodeid = $self->node_id();
my $unit = $self->unit(); my $unit = $self->unit();
my @sets = (); my @sets = ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment