@@ -49,9 +49,9 @@ using namespace Firebird;
4949
5050namespace
5151{
52- void unableToRunSweepException (const Arg::Gds& reason)
52+ void unableToRunSweepException (ISC_STATUS reason)
5353 {
54- ERR_post (Arg::Gds (isc_sweep_unable_to_run) << reason);
54+ ERR_post (Arg::Gds (isc_sweep_unable_to_run) << Arg::Gds ( reason) );
5555 }
5656}
5757
@@ -312,19 +312,19 @@ namespace Jrd
312312 SPTHR_DEBUG (fprintf (stderr, FB_FUNCTION " %p\n " , this ));
313313
314314 if (readOnly ())
315- unableToRunSweepException (Arg::Gds ( isc_sweep_read_only) );
315+ unableToRunSweepException (isc_sweep_read_only);
316316
317317 Jrd::Attachment* const attachment = tdbb->getAttachment ();
318318 if (attachment->att_flags & ATT_no_cleanup)
319- unableToRunSweepException (Arg::Gds ( isc_sweep_attach_no_cleanup) );
319+ unableToRunSweepException (isc_sweep_attach_no_cleanup);
320320
321321 while (true )
322322 {
323323 AtomicCounter::counter_type old = dbb_flags;
324324 if (old & DBB_sweep_in_progress)
325325 {
326326 clearSweepStarting ();
327- unableToRunSweepException (Arg::Gds ( isc_sweep_concurrent_instance) );
327+ unableToRunSweepException (isc_sweep_concurrent_instance);
328328 }
329329
330330 if (dbb_flags.compareExchange (old, old | DBB_sweep_in_progress))
@@ -344,7 +344,7 @@ namespace Jrd
344344 fb_utils::init_status (tdbb->tdbb_status_vector );
345345
346346 dbb_flags &= ~DBB_sweep_in_progress;
347- unableToRunSweepException (Arg::Gds ( isc_sweep_concurrent_instance) );
347+ unableToRunSweepException (isc_sweep_concurrent_instance);
348348 }
349349 }
350350 else
0 commit comments