MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / truncate

Method truncate

src/common/MsgMetadata.cpp:198–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196
197
198void MetadataBuilder::truncate(CheckStatusWrapper* status, unsigned count)
199{
200 try
201 {
202 MutexLockGuard g(mtx, FB_FUNCTION);
203
204 if (count != 0)
205 indexError(count - 1, "truncate");
206
207 msgMetadata->items.shrink(count);
208 }
209 catch (const Exception& ex)
210 {
211 ex.stuffException(status);
212 }
213}
214
215void MetadataBuilder::remove(CheckStatusWrapper* status, unsigned index)
216{

Callers

nothing calls this directly

Calls 2

shrinkMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected