⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test001.ksh

📁 b树实现源码,linux和unix下运行,速度快,极好用
💻 KSH
字号:
#!/bin/sh# TestCase:# check proc slots used and free in proctable# for i = 1 to 120#    catalog # end for# check proc slots used and free in proctable# check if any proc slot holds mutexes# Note: catalog tool with no option specified connects and disconnectsecho "Case 1: -d option with no connections"$CSQL_INSTALL_ROOT/bin/catalog -u root -p manager -D proc |grep Slotsif [ $? -ne 0 ]then   exit 1;ficount=120while [ ${count} -gt 0 ]do   count=`expr ${count} - 1`  $CSQL_INSTALL_ROOT/bin/catalog >/tmp/testlog  if [ $? -ne 0 ]  then    echo "create table failed"    exit 100;  fidoneecho "Case 2: -d option after 120 connect/disconnect"$CSQL_INSTALL_ROOT/bin/catalog -u root -p manager -D proc |grep Slotsif [ $? -ne 0 ]then   exit 1;fiexit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -