Difference between revisions of "Truxton consolidate depots"

From truxwiki.com
Jump to navigation Jump to search
(Created page with "This will go through closed depots and merge the smaller ones into the larger ones. What you will be left with is few very large depot files instead of many smaller ones. =Sy...")
 
Line 12: Line 12:
  
 
=Return value=
 
=Return value=
Zero if the message could not be sent to the <code>maintenance</code> queue, non-zero if the message was successfully sent.
+
Zero if the [[Message Bus Messages#Consolidate Depots|message]] could not be sent to the <code>maintenance</code> queue, non-zero if the message was successfully sent.
  
 
=Sample=
 
=Sample=

Revision as of 08:33, 26 July 2022

This will go through closed depots and merge the smaller ones into the larger ones. What you will be left with is few very large depot files instead of many smaller ones.

Syntax

uint32_t truxton_consolidate_depots( uint64_t truxton_handle );

Parameters

truxton_handle

The handle created by the truxton_create call.

Return value

Zero if the message could not be sent to the maintenance queue, non-zero if the message was successfully sent.

Sample

void perform_a_really_long_maintenance_task( uint64_t truxton )
{
   if ( truxton_consolidate_depots( truxton ) != 0 )
   {
      printf( "Message sent to consolidate depots\n" );
   }
}