| | 50 | |
| | 51 | * Create_object statements: |
| | 52 | |
| | 53 | * Statement 1: |
| | 54 | {{{ |
| | 55 | INSERT INTO storage_object |
| | 56 | (so_id, ext_id, ext_id_basename, type, dir_id) |
| | 57 | VALUES (?, ?, ?, 'REG_FILE', ?) |
| | 58 | }}} |
| | 59 | with ? = ('NULL', 'this/is/a/test/never/done/before', 'before', 12257) |
| | 60 | |
| | 61 | * Statement 2: |
| | 62 | |
| | 63 | {{{ |
| | 64 | SELECT LAST_INSERT_ID() |
| | 65 | }}} |
| | 66 | |
| | 67 | * Statement 3 |
| | 68 | |
| | 69 | {{{ |
| | 70 | INSERT INTO storage_object_attr |
| | 71 | (so_id, read_lock, write_lock) |
| | 72 | VALUES (?, 0, NULL) |
| | 73 | }}} |
| | 74 | |
| | 75 | with ? = 804337 |
| | 76 | |
| | 77 | * Statement 4 |
| | 78 | |
| | 79 | {{{ |
| | 80 | INSERT INTO instance |
| | 81 | (so_id, vol_id, uri) |
| | 82 | VALUES (LAST_INSERT_ID(), ?, 'error') |
| | 83 | }}} |
| | 84 | with ? = 1 |
| | 85 | |
| | 86 | * Statement 5 |
| | 87 | |
| | 88 | {{{ |
| | 89 | SELECT LAST_INSERT_ID() |
| | 90 | }}} |
| | 91 | |
| | 92 | * Statement 6 |
| | 93 | |
| | 94 | {{{ |
| | 95 | UPDATE instance |
| | 96 | SET vol_id = ?, uri = ? |
| | 97 | WHERE ins_id = ? |
| | 98 | }}} |
| | 99 | where ? = (1, 'file:///export/ippc01.0/nebulous/96/9a/584332.this:is:a:test:never:done:before', 584332) |