~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pbms/src/backup_ms.cc

  • Committer: Barry.Leslie at PrimeBase
  • Date: 2010-10-20 20:41:00 UTC
  • mfrom: (1863 staging)
  • mto: This revision was merged to the branch mainline in revision 1871.
  • Revision ID: barry.leslie@primebase.com-20101020204100-oyj6p5cfssjw3p62
Merged with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2009 PrimeBase Technologies GmbH, Germany
 
1
/* Copyright (c) 2009 PrimeBase Technologies GmbH, Germany
2
2
 *
3
3
 * PrimeBase Media Stream for MySQL
4
4
 *
33
33
 */
34
34
 
35
35
#ifdef DRIZZLED
36
 
#include <config.h>
 
36
#include "config.h"
37
37
#include <drizzled/common.h>
38
38
#include <drizzled/session.h>
39
39
#include <drizzled/table.h>
40
40
#include <drizzled/message/table.pb.h>
41
 
#include <drizzled/charset_info.h>
 
41
#include "drizzled/charset_info.h"
42
42
#include <drizzled/table_proto.h>
43
43
#include <drizzled/field.h>
44
44
#include <drizzled/field/varstring.h>
469
469
                uint8_t                         blob_storage_type;
470
470
                uint16_t                                tab_index;
471
471
                uint32_t                                mod_time;
472
 
                char                            *transferBuffer;
 
472
                char                            transferBuffer[MS_BACKUP_BUFFER_SIZE];
473
473
                CloudKeyRec                     cloud_key;
474
474
 
475
 
                transferBuffer= (char*)malloc(MS_BACKUP_BUFFER_SIZE);
476
 
 
 
475
        
477
476
                bu_BackupRunning = true;
478
477
                bu_State = BU_RUNNING; 
479
478
 
685
684
                        bu_State = BU_TERMINATED; 
686
685
                else
687
686
                        bu_State = BU_COMPLETED; 
688
 
 
689
 
                free(transferBuffer);
 
687
                        
690
688
        }       
691
689
        
692
690
        catch_(a) {