jbjohnso
486f8cf81a
Apply methodology from previous commit to a number of other places
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15829 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-04 20:11:12 +00:00
lissav
5795765011
handle easy regx expressions
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15704 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-28 12:07:25 +00:00
jbjohnso
ef9100c56e
Correct problem where /// regexes corrupt other substitutions
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15021 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-30 16:33:02 +00:00
jbjohnso
3918845c64
Fix problem where 'delEntries' failed to invalidate cached data
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14372 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-20 14:51:29 +00:00
jbjohnso
90930636d6
Fix problem where a Table object with alternate autocommit setting would not have cache expired by peer activity.
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14370 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-20 14:45:16 +00:00
jbjohnso
c14747ac04
Table.pm in a refresh scenario with cache not currently in use, but existing none the less, mark the cache as invalid by setting the timestamp to 1970
...
Still avoid *rebuilding* the cache, as in the use_cache not set suggests a mass amount of setAttribs and build_cache(1) would be extremely expensive,
just force the next consumer after the set to take the hit
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14001 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-12 16:31:55 +00:00
lissav
5c1a1383f9
document getNodeAttribs improvement
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13627 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-28 15:07:28 +00:00
nott
ac30816620
fix perl INC path
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13450 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-08 17:27:50 +00:00
jbjohnso
65f12a5022
Wrap unlikely scenario in eval to hopefully keep DB worker up in the face of some nebulous problem
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13139 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-21 15:19:06 +00:00
jbjohnso
eaec3c372b
Fix problem where nodels could return more data than requested
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12924 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-24 17:14:38 +00:00
lissav
c12bf5a549
fix comments for getAttribs
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12664 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-14 13:44:00 +00:00
lissav
112389df2b
Add more info on delEntries
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12652 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-13 10:36:16 +00:00
jbjohnso
00afad1db2
Correct mistaken variable prefix in optimization work
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12651 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-12 12:03:07 +00:00
jbjohnso
83be6fd96e
Remove _clear_cache, we are instead just going to let things age out and rely upon use_cache to control when a caller
...
urgently needs to assure fresh data
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12648 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-12 11:54:49 +00:00
jbjohnso
c82eea4b25
When doing getAllNodeAttribs, institute a noderange result cache to avoid many noderange() calls
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12645 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 19:33:27 +00:00
jbjohnso
ef27e8e45e
More aggressively retain cache
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12641 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 18:42:47 +00:00
jbjohnso
9f7c4f2dec
Change option to 'prefetchcache'
...
Ensure reference counter doesn't go crazy on prefetch
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12628 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 14:14:48 +00:00
lissav
b8f7f7a241
give better example for delEntries
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12620 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 11:55:08 +00:00
lissav
3a8ee9cf5b
give better example for delEntries
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12619 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 11:40:38 +00:00
jbjohnso
996604e435
Add 'eagercache' to getNodeAttribs
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12613 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-10 20:57:08 +00:00
jbjohnso
bb760cf069
Try to do more reuse of nodelist objects in db worker
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12608 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-10 19:59:49 +00:00
jbjohnso
abd9669f93
Have Table.pm force flush of more than 5 seconds old, in preparation for more aggresive cache retention
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12481 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 19:57:49 +00:00
jbjohnso
5e9caf5a66
Actually fix typo
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12342 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-25 18:24:40 +00:00
jbjohnso
16843a2df4
Correct typo
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12341 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-25 18:24:32 +00:00
jbjohnso
961646994d
Have Table.pm properly bail out in the event of a bug
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12334 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-24 19:17:06 +00:00
jbjohnso
67505c4c3b
Table.pm would die unceremoniously when faced with undefined argument, tolerate it
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12332 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-24 18:31:02 +00:00
immarvin
5c74fae8cd
change all logger calls to put xcat msgs into local4
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12209 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-12 05:27:42 +00:00
zhaoertao
19bc3d77c4
delete the using and implementation of getNodeSpecAttribs
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12017 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-27 11:21:58 +00:00
jbjohnso
e24cc45b70
Fix problem where Table.pm fails to skip cache for low nodecounts
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11984 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-25 15:15:58 +00:00
zhaoertao
1f6d451c67
fix bug about Table::getNodeSpecAttribs
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11759 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-06 07:55:45 +00:00
zhaoertao
d6d8739cdf
For NGP
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11749 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-05 10:25:08 +00:00
zhaoertao
504d6f443e
provide a routine which can retrieve requested attributes that matching the specified options for a node
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11318 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-12-30 07:44:19 +00:00
jbjohnso
4fdc6b5850
Enhance DB recovery to survive a failed recovery attempt
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11018 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-11-15 15:51:21 +00:00
ligc
231c38c9d3
minor perl syntax fix in Table.pm
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10480 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-09-09 05:31:10 +00:00
ligc
cd98a43e1a
fix for bug 3396712: table.pm perl syntax warning
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10343 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-08-23 06:32:32 +00:00
jbjohnso
709ec87249
Correct regex mistake in previous checkin
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9759 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-06-07 18:11:48 +00:00
jbjohnso
7f125d8e2e
Provide small performance boost to every exchange with DB worker process
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9756 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-06-07 17:00:59 +00:00
jbjohnso
ea0fe3acd6
Fix Table.pm to absolutely refuse to use cache when unusable
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9744 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-06-06 18:47:13 +00:00
jbjohnso
21490e591b
Avoid calling clear_cache two times on nodelist table objects when build_cache is only called once
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9743 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-06-06 16:58:59 +00:00
jbjohnso
ca420493fc
Fix problem where Table cache data could get mismanaged and fail to add missing columns
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9742 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-06-06 14:53:37 +00:00
jbjohnso
2ebe904d00
Fix mistake in nodelist getNodesAttribs acceleration
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9741 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-06-04 11:28:44 +00:00
lissav
219a0f4ad2
add support for compress option table create for DB2
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9671 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-05-24 16:53:39 +00:00
lissav
494e5f38f3
add support for filename on tabdump
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9569 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-05-11 17:50:08 +00:00
lissav
6163d15628
support assignment of tablespace on Table create for DB2 and put the auditlog and eventlog in the 32K tablespace
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9442 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-05-01 11:42:23 +00:00
lissav
8ddf863e48
Comment out use/require Data:Dumper
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9270 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-04-11 13:49:13 +00:00
lissav
9772091520
add support for like and not like
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9136 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-03-23 17:02:04 +00:00
lissav
ffb0268f5c
Start of change to getAllAttribsWhere to support input array, testing still to be done
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9130 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-03-22 18:45:45 +00:00
lissav
ddd1a62584
Not setting Not Null for required attributes in DB2
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8861 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-02-16 20:20:46 +00:00
lissav
f825a36124
change get_filelist to be able to handle underscore in file name
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8816 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-02-10 14:20:05 +00:00
lissav
16b8111ea2
fix for defect 3168861
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8790 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-02-06 11:35:12 +00:00