~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/set_var.cc

  • Committer: Brian Aker
  • Date: 2008-12-22 06:59:52 UTC
  • mfrom: (673.3.30 tests)
  • Revision ID: brian@tangent.org-20081222065952-gbii7cfkjdsqy6o5
Merge stewart.

Show diffs side-by-side

added added

removed removed

Lines of Context:
483
483
                                           &SV::keep_files_on_create);
484
484
/* Read only variables */
485
485
 
486
 
static sys_var_have_variable sys_have_compress(&vars, "have_compress", &have_compress);
487
486
static sys_var_have_variable sys_have_symlink(&vars, "have_symlink", &have_symlink);
488
487
/*
489
488
  Additional variables (not derived from sys_var class, not accessible as
1371
1370
    pthread_mutex_unlock(&LOCK_global_system_variables);
1372
1371
    return new Item_int((uint64_t) value);
1373
1372
  }
 
1373
  case SHOW_SIZE:
 
1374
  {
 
1375
    size_t value;
 
1376
    pthread_mutex_lock(&LOCK_global_system_variables);
 
1377
    value= *(size_t*) value_ptr(session, var_type, base);
 
1378
    pthread_mutex_unlock(&LOCK_global_system_variables);
 
1379
    return new Item_int((uint64_t) value);
 
1380
  }
1374
1381
  case SHOW_MY_BOOL:
1375
1382
  {
1376
1383
    int32_t value;