mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 06:33:34 +08:00
Server test extension
This commit is contained in:
@@ -875,6 +875,12 @@ public:
|
||||
}
|
||||
return LazyConstructor<LogEntryInfo>();
|
||||
}
|
||||
|
||||
Log::Index getNumAllocations() const
|
||||
{
|
||||
// Remember that index zero contains a special-purpose entry that doesn't count as allocation
|
||||
return persistent_state_.getLog().getLastIndex();
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -300,6 +300,8 @@ public:
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Log::Index getNumAllocations() const { return raft_core_.getNumAllocations(); }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user